Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
lodash.camelcase
Advanced tools
The lodash.camelcase npm package is a utility function from the Lodash library, specifically designed to convert strings into camelCase format. This is useful in programming environments where camelCase is a standard naming convention, such as in JavaScript for variable and function names.
String Conversion to camelCase
Converts strings with spaces, dashes, underscores, or mixed separators to camelCase format, which is a common requirement in various coding standards and practices.
const _ = require('lodash.camelcase');
console.log(_.camelCase('FOO BAR')); // 'fooBar'
console.log(_.camelCase('--foo-bar--')); // 'fooBar'
console.log(_.camelCase('__FOO_BAR__')); // 'fooBar'
A comprehensive toolkit for converting text between different cases, including camel case. It offers more extensive features compared to lodash.camelcase, such as converting to snake case, pascal case, path case, and more, making it versatile for various text manipulation needs.
This package is similar to lodash.camelcase but is a standalone utility that focuses solely on converting strings to camelCase. It is lightweight and does not depend on the larger lodash library, which might be preferable for projects where minimizing dependency size is crucial.
The lodash method _.camelCase
exported as a Node.js module.
Using npm:
$ {sudo -H} npm i -g npm
$ npm i --save lodash.camelcase
In Node.js:
var camelCase = require('lodash.camelcase');
See the documentation or package source for more details.
FAQs
The lodash method `_.camelCase` exported as a module.
We found that lodash.camelcase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.